#! /usr/bin/env python
import sys
import re

filename = sys.argv[1]
f = open(filename)
window = -1
for i in f:
  if(i.startswith("#")): 
    try :
     window = int(re.match("# window = (\d+)",i).group(1))
    except :
     pass
  else :
    print window , i[:-1]
